<?php
	
	header('Content-type:text/html;charset=utf-8');
	
	$id = isset($_GET['id']) ? (integer)$_GET['id'] : 0;
	if($id == 0){
		header('Refresh:3;url=news.php');
		echo '当前要删除的新闻不存在';
		exit;
	}
	
	include_once 'mysql.php';
	
	my_error('delete from news where id =' . $id);
	
	header('Refresh:3;url=news.php');
		echo '当前新闻已删除';
		
?>